Skip to main content

Reply to this post | Go Back
View Post [edit]

Poster: Alex.brollo Date: Mar 7, 2014 9:49am
Forum: forums Subject: jQuery test for IA API

Test these two functions into your preferred js console (I love js console of Chrome), jQuery has to run in background:

function IA(dati) {
$("body").data("IA",dati);
}

function IAload(id){
$.getScript("//archive.org/details/"+id+"&output=json&callback=IA");

}

Now run from console:
IAload("image10teatroOpal")

Nothing seems to happen but browse into .data() of your body element:

$("body").data()

All metadata of item are there into an object "IA", you can use tham as you like.

If I'm rediscovering the wheel.... don't bother about.